<template>
  <el-dialog :visible.sync="visible" :title="title" custom-class="dialog_big">
    <div v-loading="loading">
      <ex_super_desc v-bind="descOption" :data="form" :attrs="$dialogDetailDescAttrs" />
    </div>
  </el-dialog>
</template>

<script>
export default {
  components: {  },
  props:{
    url:null,
    descOption:{
      type:Object,
      default:()=>{}
    }
  },
  data() {
    return {
      visible: false, loading: false,
      title:"",
      form:{},
    }
  },
  methods: {
    show({ title, params }) {
      this.loading = true
      this.visible = true
      this.title = title
      this.$ajax({
        url: this.url,
        method: 'post',
        data: params,
        success: (res) => {
          this.form = Object.assign({}, res.data)
        },
        complete: () => {
          this.loading = false
        }
      })

    },


  }
}
</script>

<style scoped></style>
